import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import layout from '../layout//frame-layout.vue'
import childrens from './childrens'
const routes: Array<RouteRecordRaw> = [
  {
    path:'/',
    component:layout,
    redirect:'/home',
    children:childrens,
  
  },
  {
    path:'/login',
    component:()=>import('@/views/login/index.vue'),
    meta:{
        title:'登录',
    }
},
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
